﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Web;
using System.Data.SqlClient;


namespace HostingDomain3.Class
{
    public class ConnectionDB
    {
        public SqlConnection con;
        public bool isConnection() 
        {
            SqlConnectionStringBuilder builder = new SqlConnectionStringBuilder();
            builder.DataSource = @"PEONS\PC";
            builder.InitialCatalog = "aptech_hosting";
            builder.UserID = "sa";
            builder.Password = "123456";
            builder.MinPoolSize = 1;
            builder.MaxPoolSize = 20;
            builder.ConnectTimeout = 2;
            builder.Pooling = true;

            con = new SqlConnection(builder.ConnectionString);

            return con == null ? false : true;
        }

        
    }
    
}